PROJECTENGRAM

MACHINE LEARNING MODELS

Machine Learning Models

Tags: #◇Computer Science #◇CSINTSY #◇Machine Learning Models #◇Code Snippets #◇M4


◇Overview

Unlike traditional AI (symbolic AI) that uses a top-down approach by modeling rules to process data, Machine Learning employs a bottom-up approach. It feeds data and expected outputs into an algorithm to discover the underlying rules. A machine learning model acts as a hypothesis function that transforms input features XX into an output yy.

Types of Machine Learning:

  1. Supervised Learning: Models learn from labeled data to predict target variables.
    Classification: Predicts categorical variables (e.g., binary, multi-class).
    Regression: Predicts continuous/numerical variables.
  2. Unsupervised Learning: Models identify patterns from data without labels (e.g., clustering).

Training Pipeline:
Data collection →\rightarrow Preprocessing →\rightarrow Train/Test split →\rightarrow Model training →\rightarrow Evaluation.
Models are evaluated on a test set to ensure they generalize well to unseen data.

◇Code Implementation

(No direct code provided, but the process involves dataset splitting, defining the model, and evaluation.)

◇Syntax Breakdown

(Not applicable)

◇Complexity Analysis

Evaluation Metrics:
Classification:
Accuracy: TP+TNTP+TN+FP+FN\frac{TP + TN}{TP + TN + FP + FN}
Precision: TPTP+FP\frac{TP}{TP + FP}
Recall: TPTP+FN\frac{TP}{TP + FN}
F1-Score: Harmonic mean of precision and recall.
Regression:
Mean Squared Error (MSE)
Root Mean Squared Error (RMSE)

Cross-Validation: K-Fold cross-validation divides the dataset into KK parts, using K−1K-1 for training and 11 for testing, repeating KK times and averaging the performance.

◇References & Navigation

CONFIRMATION // 理解度の確認

ACTIVE RECALL VERIFICATION

Select an answer to verify conceptual comprehension and reveal the technical rationale.

Q1

How does Machine Learning primarily differ from traditional (symbolic) AI?

Q2

In supervised learning, what is the key difference between classification and regression tasks?

Q3

Which evaluation metric is specifically defined as the harmonic mean of precision and recall?

Q4

What is the primary purpose of splitting a dataset into training and testing sets?

Q5

How does K-Fold Cross-Validation operate?

Machine Learning Models | PROJECT ENGRAM